import Vue from 'vue';
import Router from 'vue-router';
import Index from '@/components/pages/Index';

Vue.use(Router);
export default new Router({
  routes: [
    {
      path: '/',
      name: 'Index',
      component: Index
    },
    {
      path: '/mdgl',
      name: 'MDGL',
      component: resolve => require(['@/components/pages/1门店管理/List'], resolve),
      children: [
        {
          path: '/mdgl/detail',
          name: 'MD_DETAIL',
          component: resolve => require(['@/components/pages/1门店管理/Detail'], resolve)
        }
      ]
    },
    {
      path: '/jycx',
      name: 'JYCX',
      component: resolve => require(['@/components/pages/2简易程序/List'], resolve),
      children: [
        {
          path: '/jycx/detail',
          name: 'JYCX_DETAIL',
          component: resolve => require(['@/components/pages/2简易程序/Detail'], resolve)
        }
      ]
    },
    {
      path: '/jcrw',
      name: 'JCRW',
      component: resolve => require(['@/components/pages/3检查任务/List'], resolve)
    },
    {
      path: '/ajsp',
      name: 'AJSP',
      component: resolve => require(['@/components/pages/4案件审批/List'], resolve)
    }, {
      path: '/qycx',
      name: 'QYCX',
      component: resolve => require(['@/components/pages/7企业查询/List'], resolve)
    }
  ]
});
